package com.company.project.dao;

import com.company.project.core.Mapper;
import com.company.project.model.Authors;
import com.company.project.util.PageUtil;
import org.apache.ibatis.annotations.Param;
import org.omg.PortableInterceptor.INACTIVE;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AuthorsMapper extends Mapper<Authors> {
    /**
     * 根据作者查询期刊和论文
     * @param cname
     * @return
     */
    List<Map<Object,Object>> frontendQuery(@Param("cname") String cname, @Param("pageUtil")PageUtil pageUtil);
    Integer frontendQueryCount(String name);
    //根据作者id查询稿件
    List selectmanuscript(Integer id);
    //根据id查询评估
    List selectAssessById(Integer id);

    //批量添加作者
    Integer insertAuthors(@Param("authorsList") List<Authors> authorsList);
}